<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
        <title>信息方案关键词编辑</title>
        <link rel="stylesheet" href="<%=basePath %>css/style.css">
        <link rel="stylesheet" href="<%=basePath %>css/msg.css">
        <link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
        <link rel="stylesheet" href="<%=basePath %>css/f_style.css">
        <link rel="stylesheet" href="<%=basePath %>css/public.css">
    </head>
    <style>
        textarea:focus {outline: none;}
        .xubox_main {height: auto!important;max-height: 670px!important;}
        .xubox_dialog {height: 45px;}
        .f_ulList3 .f_list span.s04 {cursor: default;}
        .ui_select input.ui_s_t {top: 0px;}
        .ui_select .ui_s_bk a {text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
        .ml{margin-left:50px;}
    </style>
    <script>
        var basePath = "<%=basePath%>";
    </script>
    <body ng-app="kwdEditApp">
        <input type="hidden" id="headUserId" value="${userinfo.userId}" />
        <input type="hidden" id="headUserAccount" value="${userinfo.userAccount}" />

        <div class="right" ng-controller="editCtrl">
            <!--内容区-->
            <div class="msg_info_table">
            	<form name="signup_form" novalidate>
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="mtable">
                    <tr>
                        <th scope="row" width="100">匹配关键词</th>
                        <td style="padding:10px 20px;">
                        	<textarea type="text" id="kwd" class="ui_text disui" ng-model="vm.ifm_getKeyword" style="padding:8px 8px;width:98%;min-height:170px;overflow-y:visible;vertical-align:middle;line-height:1.5" 
                        		ng-class="{error: signup_form.name.$dirty && signup_form.name.$invalid}" name="name" ng-maxlength="5000"></textarea>
                        	<div class="error">
							    <small class="error" ng-show="signup_form.name.$error.maxlength" style="color:red">
									* 匹配关键词限于5000字以内！
							    </small>
							</div>
							<div class="ts">
								<div style="float:left"><span id="match_title" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配标题&nbsp;&nbsp;</div>
								<div style="float:left; margin-left:20px;"><span id="match_body" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配正文&nbsp;</div>
							</div>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row" width="100">过滤关键词</th>
                        <td style="padding:10px 20px;">
                        	<textarea type="text" id="fwd" class="ui_text disui" ng-model="vm.ifm_notKeyword" style="padding:8px 8px;width:98%;min-height:170px;vertical-align:middle;line-height:1.5 "
                        		ng-class="{error: signup_form.note.$dirty && signup_form.note.$invalid}" name="note" ng-maxlength="5000"></textarea>
                        	 <div class="error">
							    <small class="error" ng-show="signup_form.note.$error.maxlength" style="color:red">
									* 过滤关键词限于5000字以内！
							    </small>
							</div>
                        	<div class="ts">
								<div style="float:left"><span id="match_title2" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配标题&nbsp;&nbsp;</div>
								<div style="float:left; margin-left:20px;"><span id="match_body2" class="ui_checkbox" ng-click="doCheckChange($event.target)"></span>&nbsp;匹配正文&nbsp;</div>
							</div>
                        </td>
                    </tr>
                </table>
                </form>
                <div class="btn_bk">
                    <a href="javascript:void(0)" class="ui_btn yellow release" ng-disabled="signup_form.$invalid" ng-click="domAjax('release')" id="publish">确定</a>
                    <a href="javascript:void(0)" class="ui_btn green" ng-click="cancel('')">取消</a>
                </div>
            </div>
            <!--内容区-->
        </div>

        <script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
        <script src="<%=basePath %>js/jquery.form.js"></script>
        <script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
        <script src="<%=basePath %>js/layer/layer.min.js"></script>
        <script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
        <script src="<%=basePath %>js/laydate/laydate.js"></script>
        <script src="<%=basePath %>js/config.js"></script>

        <link rel="stylesheet" href="<%=basePath %>js/Jcrop/css/jquery.Jcrop.css">
        <script src="<%=basePath %>js/Jcrop/js/jquery.Jcrop.js" defer></script>
        <script src="<%=basePath %>programme/js/angular.programmeKwdEdit.js"></script>
    </body>

</html>